# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.shared import Pt

# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.shared import Pt,Cm

myDocument = docx.Document('背诵名篇.docx')
mySection1=myDocument.sections[1]
mySection1.page_width=Cm(14)
mySection1.page_height=Cm(20.3)
print(mySection1.page_width.cm)







myDocument.save("02散文名篇.docx")

